// vite.config.js
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///E:/%E4%B8%93%E9%97%A8%E5%86%99%E9%A1%B9%E7%9B%AE%E7%9A%84%E6%96%87%E4%BB%B6%E5%A4%B9/ScreenShare/client/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/%E4%B8%93%E9%97%A8%E5%86%99%E9%A1%B9%E7%9B%AE%E7%9A%84%E6%96%87%E4%BB%B6%E5%A4%B9/ScreenShare/client/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///E:/%E4%B8%93%E9%97%A8%E5%86%99%E9%A1%B9%E7%9B%AE%E7%9A%84%E6%96%87%E4%BB%B6%E5%A4%B9/ScreenShare/client/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import VueDevTools from "file:///E:/%E4%B8%93%E9%97%A8%E5%86%99%E9%A1%B9%E7%9B%AE%E7%9A%84%E6%96%87%E4%BB%B6%E5%A4%B9/ScreenShare/client/node_modules/vite-plugin-vue-devtools/dist/vite.mjs";
import path from "path";
import { createSvgIconsPlugin } from "file:///E:/%E4%B8%93%E9%97%A8%E5%86%99%E9%A1%B9%E7%9B%AE%E7%9A%84%E6%96%87%E4%BB%B6%E5%A4%B9/ScreenShare/client/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import AutoImport from "file:///E:/%E4%B8%93%E9%97%A8%E5%86%99%E9%A1%B9%E7%9B%AE%E7%9A%84%E6%96%87%E4%BB%B6%E5%A4%B9/ScreenShare/client/node_modules/unplugin-auto-import/dist/vite.js";
import px2rem from "file:///E:/%E4%B8%93%E9%97%A8%E5%86%99%E9%A1%B9%E7%9B%AE%E7%9A%84%E6%96%87%E4%BB%B6%E5%A4%B9/ScreenShare/client/node_modules/postcss-px2rem/index.js";
var __vite_injected_original_import_meta_url = "file:///E:/%E4%B8%93%E9%97%A8%E5%86%99%E9%A1%B9%E7%9B%AE%E7%9A%84%E6%96%87%E4%BB%B6%E5%A4%B9/ScreenShare/client/vite.config.js";
var postcss = px2rem({
  // 基准大小 baseSize，需要和rem.js中相同
  remUnit: 16
});
var vite_config_default = defineConfig({
  server: {
    port: 8e3
  },
  plugins: [
    vue(),
    vueJsx(),
    VueDevTools(),
    AutoImport({ imports: ["vue"] }),
    createSvgIconsPlugin({
      iconDirs: [path.resolve(process.cwd(), "src/assets/icons/svg")],
      //svg图片存放的目录
      symbolId: "icon-[name]",
      // symbol的id
      inject: "body-last",
      // 插入的位置
      customDomId: "__svg__icons__dom__"
      // svg的id
    })
  ],
  css: {
    // 预处理器配置项
    preprocessorOptions: {
      // less: {
      //     math: "always",
      // },
      scss: {
        // 引入 mixin.scss 这样就可以在全局中使用 mixin.scss中预定义的变量了
        // 给导入的路径最后加上 ;
        additionalData: '@import "@/assets/styles/variables.scss";'
      }
    },
    loaderOptions: {
      postcss: {
        plugins: [
          postcss
        ]
      }
    }
  },
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  build: {
    // rollupOptions: {
    //     input: path.resolve(__dirname, "./src/api/index.js"),
    //     output: [
    //         {
    //             dir: path.resolve(__dirname, "dist/es"), // ES模块的输出目录
    //             format: "es", // ES模块格式
    //             entryFileNames: "[name].js",
    //         },
    //         {
    //             dir: path.resolve(__dirname, "dist/iife"), // IIFE格式的输出目录
    //             format: "iife", // IIFE模块格式
    //             name: "MyLibraryii", // IIFE格式需要一个全局变量名
    //             entryFileNames: "[name].js",
    //         },
    //     ],
    // },
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFxcdTRFMTNcdTk1RThcdTUxOTlcdTk4NzlcdTc2RUVcdTc2ODRcdTY1ODdcdTRFRjZcdTU5MzlcXFxcU2NyZ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pb25zOiB7XG4gICAgICAgICAgICAvLyBsZXNzOiB7XG4gICAgICAgICAgICAvLyAgICAgbWF0aDogXCJhbHdheXNcIixcbiAgICAgICAgICAgIC8vIH0sXG4gICAgICAgICAgICBzY3NzOiB7XG4gICAgICAgICAgICAgICAgLy8gXHU1RjE1XHU1MTY1IG1peGluLnNjc3MgXHU4RkQ5XHU2ODM3XHU1QzMxXHU1M0VGXHU0RUU1XHU1NzI4XHU1MTY4XHU1QzQwXHU0RTJEXHU0RjdGXHU3NTI4IG1peGluLnNjc3NcdTRFMkRcdTk4ODRcdTVCOUFcdTRFNDlcdTc2ODRcdTUzRDhcdTkxQ0ZcdTRFODZcbiAgICAgICAgICAgICAgICAvLyBcdTdFRDlcdTVCRkNcdTUxNjVcdTc2ODRcdThERUZcdTVGODRcdTY3MDBcdTU0MEVcdTUyQTBcdTRFMEEgO1xuICAgICAgICAgICAgICAgIGFkZGl0aW9uYWxEYXRhOiAnQGltcG9ydCBcIkAvYXNzZXRzL3N0eWxlcy92YXJpYWJsZXMuc2Nzc1wiOydcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgbG9hZGVyT3B0aW9uczoge1xuICAgICAgICAgICAgcG9zdGNzczoge1xuICAgICAgICAgICAgICAgIHBsdWdpbnM6IFtcbiAgICAgICAgICAgICAgICAgICAgcG9zdGNzc1xuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0sXG4gICAgcmVzb2x2ZToge1xuICAgICAgICBhbGlhczoge1xuICAgICAgICAgICAgXCJAXCI6IGZpbGVVUkxUb1BhdGgobmV3IFVSTChcIi4vc3JjXCIsIGltcG9ydC5tZXRhLnVybCkpLFxuICAgICAgICB9LFxuICAgIH0sXG4gICAgYnVpbGQ6IHtcbiAgICAgICAgLy8gcm9sbHVwT3B0aW9uczoge1xuICAgICAgICAvLyAgICAgaW5wdXQ6IHBhdGgucmVzb2x2ZShfX2Rpcm5hbWUsIFwi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